projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d288ae
)
(byte-optimize-form-code-walker):
author
Richard M. Stallman
<rms@gnu.org>
Sun, 22 Sep 1996 04:38:36 +0000
(
04:38
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sun, 22 Sep 1996 04:38:36 +0000
(
04:38
+0000)
Treat save-current-buffer like save-excursion.
lisp/emacs-lisp/byte-opt.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/byte-opt.el
b/lisp/emacs-lisp/byte-opt.el
index 80f3bedc0ef7d57e0386a80b0153b4c59910f41d..ef2880c7d9b1aae73f93b5c7c6192e09f8ba10f6 100644
(file)
--- a/
lisp/emacs-lisp/byte-opt.el
+++ b/
lisp/emacs-lisp/byte-opt.el
@@
-423,7
+423,7
@@
(cons (byte-optimize-form (nth 2 form) for-effect)
(byte-optimize-body (cdr (cdr (cdr form))) t)))))
- ((memq fn '(save-excursion save-restriction))
+ ((memq fn '(save-excursion save-restriction
save-current-buffer
))
;; those subrs which have an implicit progn; it's not quite good
;; enough to treat these like normal function calls.
;; This can turn (save-excursion ...) into (save-excursion) which